﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace MM.Common.DBBase
{
    public abstract class DataParam
    {
        // Fields
        public ParameterDirection Direction;
        public string Name;
        public int Size;
        public string Type;
        public object Value;

        // Methods
        public DataParam()
        {
        }

        public DataParam(string paramName, ParameterDirection paramDirection)
        {
            this.Name = paramName;
            this.Direction = paramDirection;
        }

        public DataParam(string paramName, object paramValue, ParameterDirection paramDirection)
            : this(paramName, paramDirection)
        {
            this.Value = paramValue;
        }
    }
}
